import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);
const store = new Vuex.Store({
    state:{
        num:4,
    },
    getters:{
        doubleNum(state){
            return state.num*2;
        }
    }
})
export default store;